package domain

type TmallServiceSettleadjustmentRequestSettleAdjustmentRequest struct {
	/*
	   调整费用，必需是正数，单位分     */
	Cost *int64 `json:"cost,omitempty" `

	/*
	   调整原因描述     */
	Description *string `json:"description,omitempty" `

	/*
	   调整原因图片url,最后不用加分号，最多三条     */
	PictureUrls *string `json:"picture_urls,omitempty" `

	/*
	   计价因子，填写规则：1、有计价因子场景：{name:计价因子名称 ,value:数量｝如示例；2、没有计价因子场景：填默认值：｛name:计价因子,value:0｝     */
	PriceFactors *[]TmallServiceSettleadjustmentRequestSettlementPriceFactor `json:"price_factors,omitempty" `

	/*
	   工单ID     */
	WorkcardId *int64 `json:"workcard_id,omitempty" `

	/*
	   调整单分类类型；1,配件费;2,不符单费;3,拆旧费;4,二次上门;5,胶费;6,打孔费;7,层高费;8,远程费;9,单外费;10,其他     */
	Type *int64 `json:"type,omitempty" `

	/*
	   服务商结算标记 1-服务商 2-商家 defalutValue:1    */
	TpSettleFlag *int64 `json:"tp_settle_flag,omitempty" `

	/*
	   真实服务商nick，仅限isv服务商对接接口时使用，其余服务商勿使用此字段     */
	RealTpNick *string `json:"real_tp_nick,omitempty" `
}

func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetCost(v int64) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.Cost = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetDescription(v string) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.Description = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetPictureUrls(v string) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.PictureUrls = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetPriceFactors(v []TmallServiceSettleadjustmentRequestSettlementPriceFactor) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.PriceFactors = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetWorkcardId(v int64) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.WorkcardId = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetType(v int64) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.Type = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetTpSettleFlag(v int64) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.TpSettleFlag = &v
	return s
}
func (s *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest) SetRealTpNick(v string) *TmallServiceSettleadjustmentRequestSettleAdjustmentRequest {
	s.RealTpNick = &v
	return s
}
